package com.movitech.mobile.cz.base.modules.config;

/**
 * Created by Administrator on 2018/3/8.
 */
public class EnumConstant {
    //纳税人状态 taxipayer_status
    public enum taxipayerStatus {
        /*
        taxipayerStatus1("增值税一般纳税人", "1"),
        taxipayerStatus2("增值税小规模纳税人", "2");
        */
        taxipayerStatus1("一般纳税人", "3"),
        taxipayerStatus2("小规模纳税人", "4"),
        taxipayerStatus3("政府机关", "5");
        private String desc;
        private String code;

        private taxipayerStatus(String desc, String code) {
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getCode() {
            return code;
        }

        public static String getDesc(String code) {
            for (taxipayerStatus c : taxipayerStatus.values()) {
                if (c.getCode().equals(code)) {
                    return c.getDesc();
                }
            }
            return null;
        }

    }

    //企业性质 enterprise_characterize
    public enum enterpriseCharacterize {
        /*       enterpriseCharacterize1("国有企业","1"),
               enterpriseCharacterize2("中外合资企业","2"),
               enterpriseCharacterize3("外商独资企业","3"),
               enterpriseCharacterize4("私营企业","4"),
               enterpriseCharacterize5("其他","5");
               */
//        enterpriseCharacterize2("中外合资企业", "2"),
//        enterpriseCharacterize3("外商独资企业", "3"),
//        enterpriseCharacterize5("其他","5"),


        enterpriseCharacterize1("国有企业", "1"),

        enterpriseCharacterize4("私营企业", "4"),
        enterpriseCharacterize6("集体企业", "6"),
        enterpriseCharacterize7("外商投资企业", "7"),
        enterpriseCharacterize8("港、澳、台商投资企业", "8"),
        enterpriseCharacterize9("联营企业", "9"),
        enterpriseCharacterize10("股份合作企业", "10"),
        enterpriseCharacterize11("股份有限公司", "11"),
        enterpriseCharacterize12("有限责任公司", "12"),
        enterpriseCharacterize13("其他内资企业", "13");
        private String desc;
        private String code;

        private enterpriseCharacterize(String desc, String code) {
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getCode() {
            return code;
        }

        public static String getDesc(String code) {
            for (enterpriseCharacterize c : enterpriseCharacterize.values()) {
                if (c.getCode().equals(code)) {
                    return c.getDesc();
                }
            }
            return null;
        }
    }

    //推荐人类型 recommender_type
    public enum recommenderType {
        recommenderType1("推荐人", "1"),
        recommenderType2("官网途径", "2"),
        recommenderType3("其他", "3");
        private String desc;
        private String code;

        private recommenderType(String desc, String code) {
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getCode() {
            return code;
        }

        public static String getDesc(String code) {
            for (recommenderType c : recommenderType.values()) {
                if (c.getCode().equals(code)) {
                    return c.getDesc();
                }
            }
            return null;
        }
    }

    //处理类型（1：新增，2：修改，3：删除） action_type
    public enum actionType {
        add("新增", 1),
        update("修改", 2),
        delete("删除", 3);
        private String desc;
        private Integer code;

        private actionType(String desc, Integer code) {
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }
    }

    //处理类型（1：通过，2：退回） AuditStatus
    public enum AuditStatus {
        agree("通过", 1),
        reject("退回", 2);
        private String desc;
        private Integer code;

        private AuditStatus(String desc, Integer code) {
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }
    }
}
